package Tree;

import java.util.ArrayList;
/**
 * The tree structure has a root node and the list of nodes in the tree
 */
public class Tree {
	
	Node root;
	ArrayList<Node> nodes = new ArrayList<Node>();

	public Tree(Node r, ArrayList<Node> n, ArrayList<Node> g) {
		nodes.add(r);
		root = r;
		nodes = n;

	}

	public Tree(Node r) {
		nodes.add(r);
		root = r;
	}

	public Node getRoot() {
		return root;
	}

	public void setRoot(Node root) {
		this.root = root;
	}

	public ArrayList<Node> getNodes() {
		return nodes;
	}

	public void setNodes(ArrayList<Node> nodes) {
		this.nodes = nodes;
	}

}
